import java.util.Date;

public class Format {
    public static void main(String[] args) {
        String s = String.format("i have %,d apples",10000000);
        int one = 183593486;
        double two = 325739.328932947;
        System.out.println(s);
        String ss = String.format("the rank is out of %,d of %,.2f",one,two);
        System.out.println(ss);
        String sss = String.format("%tr",new Date());
        System.out.println(sss);
    }
}
